<template>
  <div class="gendan_add">
    <addOrderList :linklist="linklist" @JumpEditPage="getData" />
  </div>
</template>

<script>
import addOrderList from '../../components/AddOrderList.vue';
import { mapState } from 'vuex';
export default {
  computed: {
    ...mapState(['searchVal']),
  },
  components: {
    addOrderList,
  },
  data() {
    return {
      linklist: [
        {
          id: 0,
          name: '客户名称',
          isRouter: true,
          url: '/gendan/gendanedit',
        },
        {
          id: 1,
          name: '客户类型',
          isRouter: false,
        },
        {
          id: 2,
          name: '联系人',
          isRouter: false,
        },
        {
          id: 3,
          name: '手机号码',
          isRouter: false,
        },
        {
          id: 4,
          name: '电子邮箱',
          isRouter: false,
        },
        {
          id: 5,
          name: '录入时间',
          isRouter: false,
        },
        {
          id: 6,
          name: '业务员',
          isRouter: false,
        },
      ],
    };
  },
  watch: {},

  methods: {
    getData(row) {
      this.$router.push({
        path: '/gendan/gendanedit',
        query: { editInfo: row },
      });
    },
  },
};
</script>

<style>
</style>